package cn.achao.csr.api.model.entity;

import cn.achao.csr.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字典表
 * @TableName sys_dict
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="sys_dict")
public class SysDict extends BaseEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id = super.getId();

    /**
     * 字典名称
     */
    private String dictName;

    /**
     * 字典类型
     */
    private String dictType;

    /**
     * 字典顺序
     */
    private Integer dictOrder;

    /**
     * 状态
     */
    private String status;

    /**
     * 昵称+(id)
     */
    private String createBy;

    /**
     * 昵称+(id)
     */
    private String updateBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否逻辑删除（1是，0否）
     */
    private Integer isDel;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public String sequenceCode() {
        return "seq_sys_dict";
    }

    public SysDict(Boolean generateId) {
        super(generateId);
    }
}